package org.appfuse.webapp.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

public class CriteriaForm extends BaseForm {
	private Long criteriaId;

	private String parentName;
	
	private String parentNumber;

	private String criteriaName;

	private String title;

	private String description;

	private String location;
	
	private String criteriaNumber;
	
	private String[] selectedId;

	public String[] getSelectedId() {
		if (selectedId != null)
			return selectedId;
		return new String[0];
	}

	public void setSelectedId(String[] selectedId) {
		this.selectedId = selectedId;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getCriteriaId() {
		return criteriaId;
	}

	public void setCriteriaId(Long id) {
		this.criteriaId = id;
	}

	public String getCriteriaName() {
		return criteriaName;
	}

	public void setCriteriaName(String name) {
		this.criteriaName = name;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCriteriaNumber() {
		return criteriaNumber;
	}

	public void setCriteriaNumber(String number) {
		this.criteriaNumber = number;
	}

	public String getParentNumber() {
		return parentNumber;
	}

	public void setParentNumber(String parentNumber) {
		this.parentNumber = parentNumber;
	}
	
	
	public void reset(ActionMapping mapping, HttpServletRequest request){
		setSelectedId(null);
		setLocation(null);
		setDescription(null);
		setCriteriaId(null);
		setCriteriaName(null);
		setParentName(null);
		setTitle(null);
		setCriteriaNumber(null);
		setParentNumber(null);
		setSelectedId(null);
	}

}
